import api from "../index.js"
export const SetAddTtemplateApi = (data) => {
	return api.post('/api/treated/addTemplate',data)
}

// 模板列表
export const getTemplateListApi = (data) => {
	return api.post('/api/treated/pageTemplate',data)
}

// 频率
export const getusedFrquSelector = (data) => {
	return api.get('/api/pharmacy/usedFrquSelector',data)
}

// 详情
export const getDeatilsApi = (data) => {
	return api.post('/api/treated/detailsTemplate',data)
}

//挂单

export const setplaceAnOrderApi = (data) => {
	return api.post('/api/DrugRetail/placeAnOrder',data)
}

// 单位
export const getunitFrquSelector = (data) => {
	return api.get('/api/treated/unitFrquSelector',data)
}

// 药品搜索
export const getdrugSelector = (data) => {
	return api.post('/api/pharmacy/drugSelector',data)
}

// 项目搜索
export const gettherapySelector = (data) => {
	return api.get('/api/treated/surchargesSelector',data)
}

// 支付
export const settlement = (data) => {
	return api.post('/api/DrugRetail/settlement',data)
}
